package person.xjl.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import person.xjl.dao.TeacherMapper;
import person.xjl.domain.Teacher;
import person.xjl.service.TeacherService;

import java.util.List;

@Service
public class TeacherServiceImpl  implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public Teacher login(String name, String password) {
        return teacherMapper.login(name,password);
    }

    @Override
    public List<Teacher> list() {
        return teacherMapper.list();
    }
}
